package org.sean.fugao.data.service;

import org.sean.fugao.data.persistence.CardChargeHistoryMapper;
import org.sean.fugao.data.persistence.CardConsumeCategoryMapper;
import org.sean.fugao.data.persistence.ConsumeInventoryMapper;
import org.sean.fugao.data.persistence.ConsumeOrderDetailMapper;
import org.sean.fugao.data.persistence.ConsumeOrderMapper;
import org.sean.fugao.data.persistence.ConsumeTypeMapper;
import org.sean.fugao.data.persistence.CustomerCardMapper;
import org.sean.fugao.data.persistence.CustomerMapper;
import org.sean.fugao.data.persistence.EmployeeMapper;
import org.sean.fugao.data.persistence.EmployeeTypeMapper;
import org.sean.fugao.data.persistence.PurchaseHistoryDetailMapper;
import org.sean.fugao.data.persistence.PurchaseHistoryMapper;
import org.sean.fugao.data.persistence.VenderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public abstract class AbstractService implements ApplicationContextAware {

	@Autowired
	private CardChargeHistoryMapper cardChargeHistoryMapper;
	
	@Autowired
	private CardConsumeCategoryMapper cardConsumeCategoryMapper;
	
	@Autowired
	private ConsumeInventoryMapper consumeInventoryMapper;
	
	@Autowired
	private ConsumeOrderDetailMapper consumeOrderDetailMapper;
	
	@Autowired
	private ConsumeOrderMapper consumeOrderMapper;
	
	@Autowired
	private ConsumeTypeMapper consumeTypeMapper;
	
	@Autowired
	private CustomerCardMapper customerCardMapper;
	
	@Autowired
	private CustomerMapper customerMapper;
	
	@Autowired
	private EmployeeMapper employeeMapper;
	
	@Autowired
	private EmployeeTypeMapper employeeTypeMapper;
	
	@Autowired
	private PurchaseHistoryDetailMapper purchaseHistoryDetailMapper;
	
	@Autowired
	private PurchaseHistoryMapper purchaseHistoryMapper;
	
	@Autowired
	private VenderMapper venderMapper;
	
	private ApplicationContext applicationContext;

	public CardChargeHistoryMapper getCardChargeHistoryMapper() {
		return cardChargeHistoryMapper;
	}

	public void setCardChargeHistoryMapper(
			CardChargeHistoryMapper cardChargeHistoryMapper) {
		this.cardChargeHistoryMapper = cardChargeHistoryMapper;
	}

	public CardConsumeCategoryMapper getCardConsumeCategoryMapper() {
		return cardConsumeCategoryMapper;
	}

	public void setCardConsumeCategoryMapper(
			CardConsumeCategoryMapper cardConsumeCategoryMapper) {
		this.cardConsumeCategoryMapper = cardConsumeCategoryMapper;
	}

	public ConsumeInventoryMapper getConsumeInventoryMapper() {
		return consumeInventoryMapper;
	}

	public void setConsumeInventoryMapper(
			ConsumeInventoryMapper consumeInventoryMapper) {
		this.consumeInventoryMapper = consumeInventoryMapper;
	}

	public ConsumeOrderDetailMapper getConsumeOrderDetailMapper() {
		return consumeOrderDetailMapper;
	}

	public void setConsumeOrderDetailMapper(
			ConsumeOrderDetailMapper consumeOrderDetailMapper) {
		this.consumeOrderDetailMapper = consumeOrderDetailMapper;
	}

	public ConsumeOrderMapper getConsumeOrderMapper() {
		return consumeOrderMapper;
	}

	public void setConsumeOrderMapper(ConsumeOrderMapper consumeOrderMapper) {
		this.consumeOrderMapper = consumeOrderMapper;
	}

	public ConsumeTypeMapper getConsumeTypeMapper() {
		return consumeTypeMapper;
	}

	public void setConsumeTypeMapper(ConsumeTypeMapper consumeTypeMapper) {
		this.consumeTypeMapper = consumeTypeMapper;
	}

	public CustomerCardMapper getCustomerCardMapper() {
		return customerCardMapper;
	}

	public void setCustomerCardMapper(CustomerCardMapper customerCardMapper) {
		this.customerCardMapper = customerCardMapper;
	}

	public CustomerMapper getCustomerMapper() {
		return customerMapper;
	}

	public void setCustomerMapper(CustomerMapper customerMapper) {
		this.customerMapper = customerMapper;
	}

	public EmployeeMapper getEmployeeMapper() {
		return employeeMapper;
	}

	public void setEmployeeMapper(EmployeeMapper employeeMapper) {
		this.employeeMapper = employeeMapper;
	}

	public EmployeeTypeMapper getEmployeeTypeMapper() {
		return employeeTypeMapper;
	}

	public void setEmployeeTypeMapper(EmployeeTypeMapper employeeTypeMapper) {
		this.employeeTypeMapper = employeeTypeMapper;
	}

	public PurchaseHistoryDetailMapper getPurchaseHistoryDetailMapper() {
		return purchaseHistoryDetailMapper;
	}

	public void setPurchaseHistoryDetailMapper(
			PurchaseHistoryDetailMapper purchaseHistoryDetailMapper) {
		this.purchaseHistoryDetailMapper = purchaseHistoryDetailMapper;
	}

	public PurchaseHistoryMapper getPurchaseHistoryMapper() {
		return purchaseHistoryMapper;
	}

	public void setPurchaseHistoryMapper(PurchaseHistoryMapper purchaseHistoryMapper) {
		this.purchaseHistoryMapper = purchaseHistoryMapper;
	}

	public VenderMapper getVenderMapper() {
		return venderMapper;
	}

	public void setVenderMapper(VenderMapper venderMapper) {
		this.venderMapper = venderMapper;
	}

	public void setApplicationContext(ApplicationContext applicationContext) {
		this.applicationContext = applicationContext;
	}
}
